package com.fafu.common.redis.utils;

import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * 不管要保存的值是不是基本数据类型，都将其以字节码的形式保存
 *
 * @author hc
 */
@Component
public class ByteRedisUtil<E> extends BaseRedisUtil<E> {

    @Resource
    private RedisTemplate<String, E> byteRedisTemplate;

    @PostConstruct
    public void init() {
        setRedisTemplate(byteRedisTemplate);
    }

}
